package org.su.webadapter.bind;


import org.su.generalmvc.IEditor;
import org.su.webadapter.MultipartHttpServletRequest;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.lang.reflect.Method;


/**
 * 
 * @author yangchuan createtime:2011-6-1下午2:44:21
 *
 */
public class ArrayFormFileEditor  implements IEditor {

	@Override
	public Object getParamValue(String paramName,  Class<?> paramType, int paramIndex, Method writer, ServletRequest request,
								ServletResponse response) {
				MultipartHttpServletRequest mRequest = (MultipartHttpServletRequest)request;
				return mRequest.getFormFiles(paramName);
			}

}